<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css">
    <style>
        .swiper-container {
            width: 600px;
            height: 300px;
        }
    </style>
</head>

<body>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide">
                <img id="lunbotu" src="../img/poster/2.jpg" width="100%" height="100%" />
            </div>
            <div class="swiper-slide">
                <img id="lunbotu" src="../img/poster/2.jpg" width="100%" height="100%" />
            </div>
            <div class="swiper-slide">
                <img id="lunbotu" src="../img/poster/2.jpg" width="100%" height="100%" />
            </div>
        </div>
        <!-- 如果需要分页器 -->
        <div class="swiper-pagination"></div>
    </div>



    <script src="https://unpkg.com/swiper/swiper-bundle.min.js">
    </script>

    <script>
        var mySwiper = new Swiper('.swiper-container', {
            loop: true, // 循环模式选项

            // 如果需要分页器
            pagination: {
                el: '.swiper-pagination',
            }
        })
    </script>
</body>

</html>